<!doctype html>
<html lang="zh-cn">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>渐变实现箭头标签</title>
  <!--  <link rel="stylesheet" href="./styles/index.css">-->
</head>
<style>
  .arrow{
    position: absolute;
    top:50%;
    left: 50%;
    transform:translate(-50%,-50%);
    width: 200px;
    height: 40px;
    text-align: center;
    color: white;
    font-size: 200%;
  }
  .arrow{
    background:
        linear-gradient(-135deg, transparent 10%, #04e6fb 10%, #65ff9a 100%)
        top right,
        linear-gradient(-45deg, transparent 10%, #04e6fb 10%, #65ff9a 100%)
        bottom right,
        linear-gradient(-135deg, #04e6fb 0, #65ff9a 90%, transparent 90%)
        top left,
        linear-gradient(-45deg, #04e6fb 0, #65ff9a 90%, transparent 90%)
        bottom left;
    background-size: 90% 50%;
    background-repeat: no-repeat;
  }
</style>
<body>
<div class="arrow"></div>
</body>
</html>
